# Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ============================================================================
"""Architecture of HourNAS"""
predefine_archs = {
    'hournas_f_c10': {
        'genotypes': [
            #'conv3bnrelu',
            'ir_k3_e1_se',
            'ir_k5_e6_se', 'ir_k5_e1_se', 'ir_k5_e1_se', 'ir_k3_e1_se',
            'ir_k5_e6_se', 'ir_k5_e1_se', 'ir_k3_e1_se', 'ir_k5_e1_se',
            'ir_k5_e6_se', 'ir_k3_e6_se', 'ir_k3_e6_se', 'ir_k3_e6_se',
            'ir_k5_e6_se', 'ir_k5_e3_se', 'ir_k5_e3_se', 'ir_k5_e3_se',
            'ir_k5_e6_se', 'ir_k5_e6_se', 'ir_k3_e6_se', 'ir_k5_e6_se',
            'ir_k5_e6_se',
            #'conv1', 'adaavgpool'
            ],
        'strides': [
            #1,
            1,
            1, 1, 1, 1,
            1, 1, 1, 1,
            2, 1, 1, 1,
            1, 1, 1, 1,
            2, 1, 1, 1,
            1,
            #1, 1
            ],
        'out_channels': [
            #32,
            16,
            24, 24, 24, 24,
            40, 40, 40, 40,
            80, 80, 80, 80,
            112, 112, 112, 112,
            192, 192, 192, 192,
            320,
            #1280, 1280,
        ],
        'dropout_ratio': 0.2,
        'default_init': 'True',
        'se_ratio': '0.05'
    },
}
